load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("@rules_cc//cc:cc_import.bzl", "cc_import")

package(default_visibility = ["//visibility:public"])

exports_files(["bar.txt"])

cc_binary(
    name = "libbar_shared",
    srcs = ["bar.c"],
    linkshared = True,
)

cc_import(
    name = "bar_shared",
    shared_library = ":libbar_shared",
)
